def book = Book.get(1) book.delete()
delete
企图删除一个临时的对象会产生错误。
flush
def book = Book.get(1) book.delete(flush:true)